package com.dingup.api.enums;

/**
 * Created by wancheng on 2018/8/25.
 */
public enum  ClassStatusEnum {
    CLASS_UNSTART("未开课"),
    CLASS_IMPLEMENTING("开课中"),
    CLASS_END("结课"),
    DELETE("删除");

    public static ClassStatusEnum getEnum(String type){
        ClassStatusEnum res = null;
        for (ClassStatusEnum e:ClassStatusEnum.values()) {
            if (e.name().equals(type)){
                res = e;
                break;
            }
        }
        return res;
    }

    private String name;

    ClassStatusEnum(String name) {
        this.name = name;
    }
}
